#include "get_key.h"

word get_b_value( mul_list b_six , intersectionset b_high_two ) 
{
	int length = b_six.length ;
	word result = 0 ;
	for ( int i = 0 ; i < length ; ++i )
	{
		word mul_factor = pow( 64.0 , i ) ;
		result = result + mul_factor * (b_six.number[i]) ;
	}
	length = b_high_two.length ;
	for ( int i = 0 ; i < length ; ++i )
	{
		result = result + b_high_two.element[i] * pow( 2.0 , 30 ) ;
	}
	return result ;
}

word get_b_key( word b_ciphertext , word b_value )
{
	return (b_ciphertext - b_value) ;
}